package cn.code.admin.dto;


import cn.code.admin.util.DateTime;

/**
 * Created by wangYuDong on 2017/5/19.
 */
public class Message {
    private boolean status;
    private String message;
    private String date= DateTime.now().toDateTimeString();

    public void setDate(String date) {
        this.date = date;
    }

    public String getDate() {
        return date;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Message(boolean status, String message) {
        this.status = status;
        this.message = message;

    }

    public Message(String message) {
        this.status = true;
        this.message = message;

    }
    @Override
    public String toString() {
        return "Message{" +
                "status=" + status +
                ", message='" + message + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}
